package edu.wfu.preparedDishes.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.wfu.preparedDishes.common.utils.PageUtils;
import edu.wfu.preparedDishes.user.entity.AddressEntity;

import java.util.List;
import java.util.Map;

/**
 * 收货地址表;
 *
 * @author ljh
 * @email hero_miracle@gmail.com
 * @date 2023-11-24 17:02:00
 */
public interface AddressService extends IService<AddressEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据用户Id查询地址信息
     * @param userId
     * @return
     */
    List<AddressEntity> selectAddressByUserId(String userId);

    AddressEntity selectAddressByAddressId(String addressId);
}

